<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<button style="width:100%;height:20%; font-size:25px;" onclick="location.reload(true)">点我刷新页面</button>

</body>

<script type="text/javascript">
    var my_cookie = document.cookie;
    console.log("get cookie is " +  my_cookie);
    window.alert("get cookie is" +my_cookie);
</script>
</html>